﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="Connection"
	x:Name="UserControl"
	d:DesignWidth="640" d:DesignHeight="480" Width="Auto">

	<Grid x:Name="LayoutRoot">
		<Label HorizontalAlignment="Left" VerticalAlignment="Top" Content="Server type" Margin="0,5,0,0"/>
        <ComboBox IsSynchronizedWithCurrentItem="True" HorizontalAlignment="Stretch" Margin="100,5,0,0" VerticalAlignment="Top" x:Name="cmbServerType">
            <ComboBoxItem Content="Microsoft SQL" IsSelected="True"/>
        </ComboBox>
        
        <Label HorizontalAlignment="Left" Margin="0,35,0,0" VerticalAlignment="Top" Content="Server name"/>
        <ComboBox IsSynchronizedWithCurrentItem="True" HorizontalAlignment="Stretch" Margin="100,35,0,0" VerticalAlignment="Top" x:Name="cmbServerName" IsEditable="True"/>
        
        <Label HorizontalAlignment="Left" Margin="0,65,0,0" Content="Authentication" Height="Auto" VerticalAlignment="Top"/>
		<ComboBox IsSynchronizedWithCurrentItem="True" HorizontalAlignment="Stretch" Margin="100,65,0,0" VerticalAlignment="Top" x:Name="cmbAuthentication">
			<ComboBoxItem Content="Windows Authentication" IsSelected="True"/>
			<ComboBoxItem Content="SQL Server Authentication"/>
		</ComboBox>
        
		<Label HorizontalAlignment="Left" Margin="20,95,0,0" VerticalAlignment="Top" Content="User name"/>
        <TextBox HorizontalAlignment="Stretch" Margin="120,95,0,0" VerticalAlignment="Top" Text="" x:Name="txtUsername" IsEnabled="False"/>
        
        <Label HorizontalAlignment="Left" Margin="20,125,0,0" VerticalAlignment="Top" Content="Password"/>
        <PasswordBox IsEnabled="False" HorizontalAlignment="Stretch" Margin="120,125,0,0" x:Name="txtPassword" VerticalAlignment="Top"/>

        <CheckBox HorizontalAlignment="Left" Margin="120,150,0,0" VerticalAlignment="Top" Content="Remember password" IsEnabled="False" x:Name="cbRememberPassword" IsThreeState="False" Visibility="Hidden"/>

        <Label HorizontalAlignment="Right" VerticalAlignment="Top" Content="" Margin="0,156,80,0" x:Name="lblStatus" d:LayoutOverrides="VerticalAlignment, Width" FontWeight="Bold">
			<Label.Foreground>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FF111111" Offset="0"/>
					<GradientStop Color="#FF888888" Offset="1"/>
				</LinearGradientBrush>
			</Label.Foreground>
		</Label>

        <Button Content="Connect" x:Name="btnConnect1" Padding="5" Margin="0,155,5,0" VerticalAlignment="Top" HorizontalAlignment="Right" IsEnabled="False" FontFamily="Arial" FontSize="12"/>
    </Grid>
</UserControl>